package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;


/**
 * 礼厅与自动门信息关联表Entity
 * 
 * @author generator
 * @date 2020-08-23 18:11
 */
@MyTable(value = "MournHallDoorEntity", name = "mourn_hall_door", comment = "礼厅与自动门信息关联表")
public class MournHallDoorEntity extends BaseEntity {
    /**
     * 礼厅设备外键
     */
    @MyColumn(value = "hallId", name = "hall_id", comment = "礼厅设备外键")
    private Integer hallId;

    /**
     * 自动门编号
     */
    @MyColumn(value = "doorNumber", name = "door_number", comment = "自动门编号", required = true)
    private String doorNumber;

    /**
     * IP地址
     */
    @MyColumn(value = "ipAddress", name = "ip_address", comment = "IP地址", required = true)
    private String ipAddress;

    /**
     * 端口号
     */
    @MyColumn(value = "portNumber", name = "port_number", comment = "端口号", required = true)
    private Integer portNumber;

    /**
     * 帐号
     */
    @MyColumn(value = "account", name = "account", comment = "帐号")
    private String account;

    /**
     * 密码
     */
    @MyColumn(value = "password", name = "password", comment = "密码")
    private String password;

    /**
     * 是否入厅开门
     */
    @MyColumn(value = "asIn", name = "as_in", comment = "是否入厅开门", required = true)
    private Integer asIn;

    /**
     * 是否出厅开门
     */
    @MyColumn(value = "asOut", name = "as_out", comment = "是否出厅开门", required = true)
    private Integer asOut;


    public Integer getHallId() {
        return hallId;
    }

    public MournHallDoorEntity setHallId(Integer hallId) {
        this.hallId = hallId;
        return this;
    }

    public String getDoorNumber() {
        return doorNumber;
    }

    public MournHallDoorEntity setDoorNumber(String doorNumber) {
        this.doorNumber = doorNumber;
        return this;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public MournHallDoorEntity setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
        return this;
    }

    public Integer getPortNumber() {
        return portNumber;
    }

    public MournHallDoorEntity setPortNumber(Integer portNumber) {
        this.portNumber = portNumber;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public MournHallDoorEntity setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public MournHallDoorEntity setPassword(String password) {
        this.password = password;
        return this;
    }

    public Integer getAsIn() {
        return asIn;
    }

    public MournHallDoorEntity setAsIn(Integer asIn) {
        this.asIn = asIn;
        return this;
    }

    public Integer getAsOut() {
        return asOut;
    }

    public MournHallDoorEntity setAsOut(Integer asOut) {
        this.asOut = asOut;
        return this;
    }
}